﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections;
using System.Collections.ObjectModel;

namespace ClientApplication
{
    public partial class Admin4 : Form, IAdmin4
    {
        public Admin4()
        {
            InitializeComponent();
        }

        private void Admin4_Load(object sender, EventArgs e)
        {

        }

        private void Add_button_Click(object sender, EventArgs e)
        {

        }

        private void listViewJudges_Available_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void listViewAddedJudges_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        public void PrintOfflineJudges(List<string> stringList)
        {
            foreach (var str in stringList)
            {
                textBox_offlineJudges.AppendText(str + Environment.NewLine);
            }
        }

        public void FillUpAvailable(List<JudgeSerializable> judges)
        {
            for (int i = 0; i < judges.Count; i++)
			{
                listViewJudges_Available.Items.Add(judges[i].username);
			}
        }
    }
}
